package com.qf.bean;

import java.io.Serializable;
import java.util.List;

public class Area implements Serializable {
    private static final long serialVersionID=1L;
    private List<Area> children;

    public List<Area> getChildren() {
        return children;
    }

    public void setChildren(List<Area> children) {
        this.children = children;
    }

    public void clear(){
        if (children != null) {
            for (int i = 0; i <children.size() ; i++) {
                children.get(i).clear();
            }
            children.clear();
            children=null;
        }
    }

    @Override
    public String toString() {
        return "Area{" +
                "children=" + children +
                '}';
    }
}
